package org.test.generictype.sample;

import java.lang.reflect.ParameterizedType;

public class GpFatherTesting<T> {
	Class<T> clazz;  
	  
    @SuppressWarnings("unchecked")  
    public GpFatherTesting()  
    {  
        clazz = (Class<T>) ((ParameterizedType) this.getClass().getGenericSuperclass()).getActualTypeArguments()[0];  
    }  
}
